﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DLLCOM;

namespace DLLCOM
{
    /// <summary>
    /// DLL_noDelegate.xaml 的交互逻辑
    /// </summary>
    public partial class DLL_noDelegate : Page
    {
        public DLL_noDelegate()
        {
            InitializeComponent();
        }

        private void doAdd_Click(object sender, RoutedEventArgs e)
        {
            int res = DllCall.Add(int.Parse(add1.Text), int.Parse(add2.Text));
            add_res.Text = String.Concat(res);
        }

        private void doMulti_Click(object sender, RoutedEventArgs e)
        {
            int res = DllCall.Multi(int.Parse(multi1.Text), int.Parse(multi2.Text));
            multi_res.Text = String.Concat(res);
        }

        private void doFra_Click(object sender, RoutedEventArgs e)
        {
            int res = DllCall.Factorial(int.Parse(fra1.Text));
            fra_res.Text = String.Concat(res);
        }
    }
}
